package keni.html.android.framework.util;



public final class Constants {
	
	public static final class Http {

		public static final String METHOD = "method";
		public static final String POST = "POST";
		public static final String GET = "GET";
		public static final String JSON = "JsonParseException";
	}
	public enum PersistenceAction {
		Create, Retrieve, Update, Delete
	}
	public static final class LogTag {

		public static final String XMLPARSEEXCEPTION = "XmlParseException";
		public static final String IOEXCETPION = "IOException";
		public static final String METADATAPARSER = "MetadataParser";
		public static final String JSON = "JsonParseException";
	}

	public static final class MetadataTagDeepth {
		public static final int FORMFIELD = 2;
		public static final int TABLE = 3;
		public static final int FIELD = 4;
		

	}
	
	public  static final class MetadataTagName {
		
		public static final String PAGE="page";
		public static final String ID="id";
		public static final String URL="url";
		public static final String MODELNAME="modelName";
		public static final String FIELD="field";
		public static final String DATASOURCEMAPPING="dataSourceMapping";
		public static final String RENDERTO="renderTo";
		public static final String WIDTH="modelName";
		public static final String HEIGHT="height";
		public static final String FIELDTYPE="fieldType";
		public static final String DATATYPE="dataType";
		public static final String LABEL="label";
		public static final String HTMLELEMENTID="htmlElementId";
		public static final String ISIDENTIFIER="isIdentifier";
		public static final String FILTER="filter";
		public static final String PANEL="panel";
		public static final String FIELDSET="fieldSet";
		public static final String TITLE="title";
		public static final String INSTRUCTIONS="instructions";
		public static final String DATAVIEW="dataView";
		public static final String ISASSOCIATEKEY="isAssociateKey";
		public static final String BELONGTO="belongTo";
		public static final String ALIAS="alias";
		public static final String CAROUSEL="carousel";
		public static final String HTML="html";
		public static final String TPL="tpl";
		public static final String MODEL="model";
		public static final String DATAFIELD="dataField";
		public static final String VALIDATION="validation";
		public static final String ASSOCIATION="association";
		
	}

	public static final class MetadataAttributesName {
		public static final String NAME = "name";
		public static final String ID = "id";
		public static final String DATATYPE = "dataType";
		public static final String HTMLELEMENTSID = "htmlElementId";
		public static final String ISPK = "isPk";
		public static final String ISFK = "isFk";
		public static final String PARENTTABLENAME = "parentTableName";

		

	}
	public static final class JsonObjectKeys{
		public static final String DATA="data";
		public static final String SORTORDER="sortOrder";
		public static final String FIELDS="fields";
		public static final String FIELDSETS="fieldSets";
		public static final String DATASOURCENAME="dataSourceName";
		public static final String WHERE="where";
		public static final String SELECTIONARGS="selectionArgs";
		public static final String ID="_id";
		public static final String PANELS="panels";
		
	}
	public static final class ObjectProviderMetaData {
		public static final String DATABASE_NAME = "MyDemo";
		public static final int DATABASE_VERSION = 2;
		public static final int INCOMING_OBJECT_COLLECTION_URI_INDICATOR = 1;
		public static final int INCOMING_SINGLE_OBJECT_URI_INDICATOR = 2;
		public static final String AUTHORITY="com.keni.ObjectProvider";
		public static final String CONTENT_URI="content://"+AUTHORITY;
		public static final String CONTENT_TYPE="vnd.android.cursor.dir/vnd.keni.objects.%s";
		public static final String CONTENT_ITEM_TYPE="vnd.android.cursor.item/vnd.keni.objects.%s";
	}


	
	
	public static final class Tables {
		public static final String ID="_id";
		public static final String CREATEBY="CreateBy";
		public static final String CREATETIME="CreateTime";
		
		public static final class TableNames{
			public static final String CUSTOMER="Customer";
			public static final String PRODUCT="Proudct";
			public static final String ORDER="Order";
			public static final String ORDERITEM="OrderItem";
			public static final String CUSTOMERORDER="CustomerOrder";
		}
		
		public static final class Customer{
			public static final String CUSTOMERNAME="CustomerName";
			public static final String MOBILE="Mobile";
			public static final String ADDRESS="Address";
			
			
		}
		public static final class Proudct{
			public static final String PRODUCTNAME="ProductName";
			public static final String MADEIN="MadeIn";
		}
		
		public static final class Order{
			public static final String ORDERID="OrderId";
			public static final String TOTALPRICE="TotalPrice";
		}
		public static final class OrderItem{
			public static final String ORDERID="OrderId";
			public static final String PRODUCTID="ProductId";
			public static final String AMOUNT="Amount";
			public static final String PRICE="Price";
		}
		
		public static final class CustomerOrder{
			public static final String CUSTOMERID="CustomerId";
			public static final String ORDERID="OrderId";
		}
		
	}
}
